package com.jiangyg.mall.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 类描述：会员
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:00:56
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mm_member")
public class Member implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@TableField("id")
	private Long id;

	/**
	 * 会员等级id
	 */
	@TableField("level_id")
	private Long levelId;

	/**
	 * 用户名
	 */
	@TableField("username")
	private String username;

	/**
	 * 密码
	 */
	@TableField("password")
	private String password;

	/**
	 * 昵称
	 */
	@TableField("nickname")
	private String nickname;

	/**
	 * 手机号码
	 */
	@TableField("mobile")
	private String mobile;

	/**
	 * 邮箱
	 */
	@TableField("email")
	private String email;

	/**
	 * 头像
	 */
	@TableField("header")
	private String header;

	/**
	 * 性别
	 */
	@TableField("gender")
	private Integer gender;

	/**
	 * 生日
	 */
	@TableField("birth")
	private Date birth;

	/**
	 * 所在城市
	 */
	@TableField("city")
	private String city;

	/**
	 * 职业
	 */
	@TableField("job")
	private String job;

	/**
	 * 个性签名
	 */
	@TableField("sign")
	private String sign;

	/**
	 * 用户来源
	 */
	@TableField("source_type")
	private Integer sourceType;

	/**
	 * 积分
	 */
	@TableField("integration")
	private Integer integration;

	/**
	 * 成长值
	 */
	@TableField("growth")
	private Integer growth;

	/**
	 * 启用状态
	 */
	@TableField("status")
	private Integer status;

	/**
	 * 注册时间
	 */
	@TableField("create_time")
	private Date createTime;

}
